<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <div th:include="path::sub_path_css" ></div>
    <div th:include="path::ztree_css" ></div>
</head>
<body class="gray-bg ">
    <div class="gr-dg">
        <form class="form-horizontal m" id="add_form">
            <input type="hidden" id="menu_id" name="param[menuId]">
            <div class="col-md-12">
                <div class="form-group">
                    <label class="col-sm-2 control-label">角色菜单：</label>
                    <div class="col-sm-9">
                        <div class="gr-dg">
                            <div class="demo-tree demo-tree-box">
                                <ul id="treeDemo" class="ztree"></ul>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">角色名称：</label>
                    <div class="col-sm-9">
                        <input type="text" name="roleName" id="roleName" class="form-control" placeholder="请输入菜单名称">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">状态：</label>
                    <div class="col-sm-9 radio i-checks">
                            <label th:each="dict:${@dictValue.findDictByKey('role_state')}">
                                <input type="radio" th:checked="${dict.dictValue eq '0'}" th:value="${dict.dictValue}" name="state"> <i></i> [[${dict.dictText}]]
                            </label>
                            <!--<label>
                                <input type="radio" value="1" name="isOpen"> <i></i>是</label>
                            </label>-->
                    </div>
                </div>
            </div>
        </form>

    </div>

    <div th:include="path::sub_path_js" ></div>
    <div th:include="path::ztree_js" ></div>
    <script type="text/javascript" th:src="@{/js/fly-admin/system/role/add.js}"></script>
    <script th:inline="javascript">
        $(document).ready(function () {
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });
        });
    </script>
</body>

</html>
